import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_71 =  {
  scheme: {
    ...CardEditableParamsDefault.InputNormal,
    label: '跳转链接',
    placeholder: '请填入跳转链接',
  },
  header: {
    ...CardEditableParamsDefault.Obj,
    label: '头部配置',
    param_params: {
      imgurl: {
        ...CardEditableParamsDefault.ImageNormal,
        label: '头部图片 (750*92 /px)',
        res_type: 'String',  // Array : fileList, String : value
        placeholder: '尺寸严格按照750x92(px)，小于200kb，png格式',
        limit: 1,
        size: 200,
        accept: '.png',
        tooltips: TooltipsData.image[5],
      }
    }
  },
  footer: {
    ...CardEditableParamsDefault.Obj,
    label: '底部配置',
    param_params: {
      desc: {
        ...CardEditableParamsDefault.InputNormal,
        label: '底部描述',
        placeholder: '请填入底部描述，25个汉字',
      },
      desc_struct: {
        ...CardEditableParamsDefault.Lists,
        label: '底部描述关键词',
        param_params: {
          name: {
            ...CardEditableParamsDefault.InputNormal,
            label: '关键词',
            placeholder: '请填入关键词',
          },
          color_skin: {
            ...CardEditableParamsDefault.ColorNormal,
            label: '关键词颜色',
            value: '#FF0000',
            format: 'hex',
            isAlpha: false,
          },
        }
      }
    }
  },
  rank_list: {
    ...CardEditableParamsDefault.Lists,
    label: '排名',
    limit: 4,
    param_params: {
      rank: {
        ...CardEditableParamsDefault.InputNormal,
        label: '名次',
        placeholder: '请填入名次',
      },
      data: {
        ...CardEditableParamsDefault.InputNormal,
        label: '数据',
        placeholder: '请填入数据',
      },
      unit: {
        ...CardEditableParamsDefault.InputNormal,
        label: '单位',
        placeholder: '请填入单位',
      },
      user: {
        ...CardEditableParamsDefault.Obj,
        label: '用户配置',
        param_params: {
          screen_name: {
            ...CardEditableParamsDefault.InputNormal,
            label: '用户昵称',
            placeholder: '请填入用户昵称，10个汉字',
          },
          // profile_image_url: {
          //   ...CardEditableParamsDefault.InputNormal,
          //   label: '用户头像',
          //   placeholder: '请填入用户头像',
          // },
          profile_image_url: {
            ...CardEditableParamsDefault.ImageNormal,
            label: '头像 (100*100px)',
            res_type: 'String',  // Array : fileList, String : value
            placeholder: '尺寸严格按照100*100(px)，小于200kb，png，jpg， jepg格式',
            limit: 1,
            size: 200,
            accept: '.png, .jpg, .jepg',
            tooltips: `尺寸严格按照100*100(px)，小于200kb，png，jpg， jepg格式`,
          },
          avatar_large: {
            ...CardEditableParamsDefault.InputNormal,
            label: '用户头像',
            placeholder: '请填入用户头像',
            disabled: true,

            param_effect_parent: {
              effect_parent_keys: ['rank_list', 'ARRAY_NUM', 'user', 'profile_image_url'],
              effect_type: ['COPY']
            }
          },
        }
      },
    }
  },
  ...CardDataEditableParamsCommonDefault,
};
export default CARD_71;
